package com.springdemo.spring5.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/26 15:50
 * Description:
 * Version: V1.0
 */
@Configuration  //作用：将该类作为配置类，替代xml配置文件
@ComponentScan(basePackages = {"com.springdemo.spring5"})
//类似于 <context:component-scan base-package="com.springdemo.spring5"></context:component-scan>
public class SpringConfig {

}
